package com.ruoyi.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单退款记录对象 order_refund
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("order_refund")
public class OrderRefund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;
    /** 退款号 */
    @Excel(name = "退款号")
    private String refundCode;

    private String outTradeNo;
    /** 云智退款号 */
    @Excel(name = "云智退款号")
    private String yzRefundId;
    /** 类型 */
    @Excel(name = "类型")
    private String type;
    /** 状态 */
    @Excel(name = "状态")
    private String status;
    /** 云智会员退款金额 */
    @Excel(name = "云智会员退款金额")
    private Long yzRefundAmount;
    /** 微信退款金额 */
    @Excel(name = "微信退款金额")
    private Long wechatRefundAmount;
    /** 总金额 */
    @Excel(name = "总金额")
    private Long totalAmount;
    /** $column.columnComment */
    private String delFlag;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public void setRefundCode(String refundCode)
    {
        this.refundCode = refundCode;
    }

    public String getRefundCode()
    {
        return refundCode;
    }
    public void setYzRefundId(String yzRefundId)
    {
        this.yzRefundId = yzRefundId;
    }

    public String getYzRefundId()
    {
        return yzRefundId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setYzRefundAmount(Long yzRefundAmount)
    {
        this.yzRefundAmount = yzRefundAmount;
    }

    public Long getYzRefundAmount()
    {
        return yzRefundAmount;
    }
    public void setWechatRefundAmount(Long wechatRefundAmount)
    {
        this.wechatRefundAmount = wechatRefundAmount;
    }

    public Long getWechatRefundAmount()
    {
        return wechatRefundAmount;
    }
    public void setTotalAmount(Long totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public Long getTotalAmount()
    {
        return totalAmount;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("refundCode", getRefundCode())
            .append("yzRefundId", getYzRefundId())
            .append("type", getType())
            .append("status", getStatus())
            .append("yzRefundAmount", getYzRefundAmount())
            .append("wechatRefundAmount", getWechatRefundAmount())
            .append("totalAmount", getTotalAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
